//
//  EpImageProcessor.h
//  BowmanMap2
//
//  Created by vtloc on 26/2/09.
//  Copyright 2009 bk. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CoreGraphics/CoreGraphics.h"

// To do: implement filter for image
typedef enum {
	kEpXorFilter=0,
	kEpOrFilter
} ImageFilterType;

@interface EpImageProcessor : NSObject {

}

// generate a copy from a source image
+(UIImage*)createCopy:(UIImage*)source;

// copy a region of image to
+(UIImage*)createSubImage:(UIImage*)source withRect:(CGRect)frame;

// apply a mask on a source image
+(UIImage*)createImage:(UIImage*)source withMask:(UIImage*)mask;

//
+(UIImage*)createImageFromContext:(CGContextRef)context;

//
+(CGContextRef)createBitmapContextWithWidth:(int)pixelsWidth withHeight:(int)pixelsHeight;

//
+(CGContextRef)createBitmapContextFromExistingImage:(UIImage*)source;

//
+(UIImage*)filterImage:(UIImage*)source withFilter:(ImageFilterType)type;


@end


